<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/25
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String userName = request.getParameter("userName");
    String pwd = request.getParameter("pwd");
    String sex=request.getParameter("sex");
    String[] hobbyies=request.getParameterValues("hobby");
    String edu = request.getParameter("education");
    String remark = request.getParameter("remark");
%>
注册成功！
</br>用户名：<%=userName%>
</br>密码：<%=pwd%>
</br>性别：<%=sex%>
</br>爱好：
<%
    for (int i =0;i<hobbyies.length;i++){
%>
        <%=hobbyies[i]%>
<%
    }
%>
</br>学历：
<%
    if(edu.equals("1")){
        out.print("博士");
    }else if(edu.equals("2")){
        out.print("研究生");
    }else if(edu.equals("3")){
        out.print("大学");
    }else if(edu.equals("4")){
        out.print("高中");
    }else if(edu.equals("5")){
        out.print("初中");
    }else{
        out.print("无学历");
    }
%>
</br>注释：<%=remark%>
</body>
</html>
